package com.zhipu.resetbalance.ui.home;

import android.os.Bundle;

import androidx.lifecycle.ViewModelProvider;

import com.zhipu.resetbalance.R;
import com.zhipu.resetbalance.databinding.ActivityHomeBinding;
import com.zhipu.resetbalance.ui.BaseActivity;

public class HomeActivity extends BaseActivity<ActivityHomeBinding> {


    /**
     * VM
     */
    private HomeViewModel homeViewModel;

    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_home;

    }


    @Override
    public void initViewModel() {
        super.initViewModel();
        //VM
        homeViewModel = new ViewModelProvider(getViewModelStore(), new ViewModelProvider.AndroidViewModelFactory(getApplication())).get(HomeViewModel.class);
        binding.setViewModel(homeViewModel);

    }
}
